set n=57
set problem="10nums20bits.seed"
set output="10nums20bits.out"
set max=97

echo "setup main server"
start cmd.exe @cmd /k "plink azureuser@stile81.cloudapp.net -pw sTile@40 java -Xmx4G -cp .:mPrism2.1.1_timer.jar tileStyle.TileStyleStarter server stile81.cloudapp.net %n% problemTiles/SubsetSum.tiles %problem% %output% 0"

ping 192.0.2.2 -n 1 -w 1000 > nul

for /L %%a in (21, 1, %max%) do (
IF %%a GEQ 82 IF %%a LEQ 100 (
start cmd.exe @cmd /k "plink azureuser@stile%%a.cloudapp.net -pw  sTile@40 java -Xmx4G -cp .:mPrism2.1.1_timer.jar tileStyle.TileStyleStarter client stile%%a.cloudapp.net stile81.cloudapp.net"	
)

IF %%a GEQ 41 IF %%a LEQ 60 (
start cmd.exe @cmd /k "plink azureuser@stile%%a.cloudapp.net -pw  sTile@40 java -Xmx4G -cp .:mPrism2.1.1_timer.jar tileStyle.TileStyleStarter client stile%%a.cloudapp.net stile81.cloudapp.net"	
)

IF %%a GEQ 21 IF %%a LEQ 40 (
start cmd.exe @cmd /k "plink lemduc@stile%%a.cloudapp.net -pw  Meocon@)13 java -Xmx4G -cp .:mPrism2.1.1_timer.jar tileStyle.TileStyleStarter client stile%%a.cloudapp.net stile81.cloudapp.net"	
)

)